#include <iostream>

#include "./utility/Logger.h"
using namespace yazi::utility;

int main() {
//    std::cout << "Hello, World!" << std::endl;
//    Logger::instance()->open("D:\\CCode\\MyLog\\test.log");
    Logger::instance()->open("./test.log");
//    Logger::instance()->level(Logger::ERROR);
    Logger::instance()->max(200);
//    Logger::instance()->log(Logger::DEBUG, __FILE__, __LINE__, "HELLO World");
//    Logger::instance()->log(Logger::DEBUG, __FILE__, __LINE__, "name is %s, age is %d", "ituser", 18);

    debug("debug hello world");
//    info("info hello world");
//    warn("warn hello world");
//    error("error hello world");
    Logger::destory();

    return 0;
}
